#include "generatorconsoleoutput.h"

GeneratorConsoleOutput::GeneratorConsoleOutput()
{
	m_output = new QTextStream(stdout, QIODevice::WriteOnly);
}

GeneratorConsoleOutput::~GeneratorConsoleOutput()
{
	delete m_output;
}

void GeneratorConsoleOutput::printOutput(const QString &message)
{
	*m_output << message << "\n";
	m_output->flush();

	emit GeneratorOutputView::message(message);
}
